package com.example.business_oa.service;

import com.example.comment_oa.dubbo.SysUserDubbo;
import com.example.comment_oa.pojos.SysUser;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class HyUserService {
    @DubboReference(version = "1.0.0")
    SysUserDubbo userDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public int addUser(SysUser sysUser){
        int insert = userDubbo.insert(sysUser);
        return insert;
    }
}
